package antonTest;
import java.awt.Color;
import java.awt.Point;

public class Scent
{
	private Point position;
	private int age = 0;
	private int lifetime;
	private boolean isAlive = true;
	private Color color;

	public Scent(int lifetime, Point position) {
		this.lifetime = lifetime;
		this.position = position;
	}

	public boolean isAlive() {
		return isAlive;
	}

	public void HappyBirthday() {
		age++;
		if (age > lifetime) {
			age = lifetime;
			isAlive = false;
		}
	}

	public Point getPosition() {
		return position;
	}

	public void setPosition(Point position) {
		this.position = position;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getLifetime() {
		return lifetime;
	}

	public void setLifetime(int lifetime) {
		this.lifetime = lifetime;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}
}
